<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form  class="formTable"  id="addBoxForm">
    <table style="border: 1px solid #ccc" >
        <tr>
            <td><input id="id" type="hidden" name="id" > </td>
        </tr>
        <tr>
            <th width="100" style="text-align: right">班级名称：</th>
            <td><input id="ban" type="text" name="name"> </td>
        </tr>
        <tr>
            <th style="text-align: right">班级代号:</th>
            <td><input id="nian" type="text" name="classcode"> </td>
        </tr>
    </table>
</form>
<script type="text/javascript">
    var row11 = $("#tag").datagrid('getSelections');
             // alert(row11[0].classid);
     $('#id').attr({
       value: row11[0].id,
     });
     $('#ban').attr({
       value: row11[0].name,
     });
     $('#ren').attr({
       value: row11[0].creatdate,
     });
     $('#nian').attr({
       value: row11[0].classcode,
     });
</script>
</body>
</html>